package cn.wolfcode.mybatis_review.mapper;

import cn.wolfcode.mybatis_review.domain.Student;
import cn.wolfcode.mybatis_review.domain.Teacher;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @author Administrator
 */
@Component
public interface StudentMapper {
    void save(Student student);
    void insertRelation(@Param("teacher_id") Long teacher_id, @Param("student_id") Long student_id);
    List<Teacher> get(Long id);
    void deleteById(Long id);
    void deleteRelation(Long student_id);
}
